<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>圣杯布局</title>
  <style type="text/css">
    * {
      padding: 0;
      margin: 0;
    }
    .column {
      text-align: center;
      height: 100px;
      float: left;
      position: relative;

    }
    .middle {
      width: 100%;
      background-color: lightgreen;
    }
    .left {
      width: 100px;
      background-color: lightskyblue;
      margin-left: -100%;
      left: -100px;
    }
    .right {
      width: 50px;
      background-color: orange;
      /* margin-right: -50px; */
      margin-left: -50px;
      left: 50px;
    }
    .container {
      margin: 0 50px 0 100px;
    }


  </style>
  
</head>

<body>
  <!-- 圣杯布局 -->
  <!-- 思路 将中间核心区放在最上面最先加载 -->
  
  <div class="container">
    <div class="middle column">Main</div>
    <div class="left column">Left</div>
    <div class="right column">Right</div>
  </div>
  
 

</body>

</html>